﻿using DigitalHealth.PACS.Model.Enumeration;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DigitalHealth.PACS.Model
{
    /// <summary>
    /// 消息模板
    /// </summary>
    public abstract class MsgTemplate
    {
        /// <summary>
        /// 消息标识
        /// </summary>
        [Key]
        public Guid Id { get; set; }
        /// <summary>
        /// 发送者
        /// </summary>
        [Required]
        public ChatUser SenderUser { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageType Type { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 消息时间
        /// </summary>
        public DateTime ChatTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 消息状态
        /// </summary>
        public MsgState State { get; set; }
    }
}
